package javase.chixing.io.reflect;

class Student{
    private int stuId;
    protected String stuName;
    String stuMajor;
    public long stuTelno;

    public Student(int stuId, String stuName, String stuMajor, long stuTelno) {
        this.stuId = stuId;
        this.stuName = stuName;
        this.stuMajor = stuMajor;
        this.stuTelno = stuTelno;
    }

    public Student() {
    }

    public static final void study(int a){
        System.out.println("static 修饰方法");
    }

    public int play(int x,float y){return 1;}

    public int add(int x, float y){return 2;}
    public int add(int x, float y,int z){return 3;}


    public int getStuId() {
        return stuId;
    }

    public void setStuId(int stuId) {
        this.stuId = stuId;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public String getStuMajor() {
        return stuMajor;
    }

    public void setStuMajor(String stuMajor) {
        this.stuMajor = stuMajor;
    }

    public long getStuTelno() {
        return stuTelno;
    }

    public void setStuTelno(long stuTelno) {
        this.stuTelno = stuTelno;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuId=" + stuId +
                ", stuName='" + stuName + '\'' +
                ", stuMajor='" + stuMajor + '\'' +
                ", stuTelno=" + stuTelno +
                '}';
    }
}
